package com.wayne.oauth2.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter;

/**
 * 配置jwt转换器
 */
@Configuration
public class JwtTokenConfiguration {
    /**
     * 使用jwt转换器 把普通的token转换为jwt形式的token
     * @return
     */
    @Bean
    public JwtAccessTokenConverter jwtAccessTokenConverter(){
        return new JwtAccessTokenConverter();
    }
}
